# -*- coding: utf-8 -*-
from django import forms
from django.forms import ModelForm

from models import PPCaseInfo,PPCaseInvestigation,PPCaseRefund,PPCaseHandle,Cooperate,CaseResult


#RESPONSIBILITY_CHOICE = (
#    ('物流','物流'),
#    ('供应商管理','供应商管理'),
#    ('客户','客户'),
#)

        
class InvestigateForm(ModelForm):
    class Meta:
        model = PPCaseInvestigation
        exclude=('orderNo')

class PPCaseHandleForm(ModelForm):
    class Meta:
        model =PPCaseHandle
        exclude = ('caseID', )


class PPCaseRefundForm(ModelForm):
    class  Meta:
        model=PPCaseRefund

class CooperateForm(ModelForm):
    class Meta:
        model = Cooperate
        exclude=('caseID','settledDate','repliedSolution')
class SettledCooperateForm(ModelForm):
    """得到同事的处理意见的回复"""
    class Meta:
        model = Cooperate
        fields = ('settledDate','repliedSolution',)

class EndCaseForm(ModelForm):
    class Meta:
        model = CaseResult
        exclude=('caseID','endDate')